import request from "../utils/request";
// 查询
export const queryPageApi = (name, gender, begin, end, page, pageSize) => {
  return request.get(
    `/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`
  );
};
// 新增
export const addApi = (data) => {
  
  return request.post("/emps", data);
};
// 根据id查询
export const queryByIdApi = (id) => {
  return request.get(`/emps/${id}`);
};
// 修改
export const updateApi = (data) => {
  return request.put(`/emps`, data);
};
// 删除
export const deleteApi = (ids) => {
  return request.delete(`/emps?ids=${ids}`);
};